package com.data;

import java.io.Serializable;

import com.smartfood.R;
import com.smartfood.Smartfood;

public class Instruction implements Serializable {
	private static final long serialVersionUID = 2059669922098118704L;

	protected int order;
	protected String inst;
	public Instruction(int order,String inst) {
		this.order=order;
		this.inst=inst;
	}
	public int getOrder() {
		return order;
	}
	public void setOrder(int order) {
		this.order=order;
	}
	public String getInst() {
		return inst;
	}
	public void setInst(String inst) {
		this.inst=inst;
	}
	@Override
	public String toString() {
		return Smartfood.getContext().getString(R.string.addrecipeinstruction)+" "+order;
	}
	
	public String toLongString() {
		return ""+order+" - "+inst;
	}
}
